import numpy as np


k = 1
def Schedule(k):
    if k == 1:
        return np.array([[1,2],[2,1]])

    l = Schedule(k-1)
    r = l+2**(k-1)

    return np.concatenate((np.concatenate((l,r),axis=1),np.concatenate((r,l),axis=1)))

print(Schedule(4))
